#ifndef APPFLICKRMODEL_H_
#define APPFLICKRMODEL_H_

#include <list>
#include <string>
#include "FlickR_Img.h"
#include "../AppModel.hpp"

class AppFlickRModel : public AppModel {
 public:
  /**
   * Creates a FlickR model
   */
  AppFlickRModel();

  /**
   * Load photographs from a given id
   * @param user_id the id of the user that you want to see the pictures
   */
  void loadImgFromId(std::string user_id);
  
  /**
    * get preloaded pictures
    */
  std::list<FlickR_Img> getPictures();

  std::list<std::string> cacheFiles(int size);
  std::list<std::string> cacheLargeFiles(int size);
  
  FlickR_Img frontPicture();

  ~AppFlickRModel();
  
  private:
      std::list<FlickR_Img> _photo;
};

#endif /* APPFlickRMODEL_H_ */
